package com.rbmh.network.service;

import com.rbmh.network.bean.entity.DbInfo;
import com.rbmh.network.bean.entity.PageResult;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface DbConnectService {
    boolean dbConnect(DbInfo dbInfo);

    int deleteById(Long id);

    // 修改原有的selectByPage方法，增加更多查询条件
    List<DbInfo> selectByPage(String province, String city, String district,
                              String detailAddress, String ipAddress,
                              String orderBy, String orderDir,
                              int offset, int pageSize);

    // 修改count方法，支持更多查询条件
    int countByConditions(String province, String city, String district,
                          String detailAddress, String ipAddress);
}
